{"ast":null,"code":"import { Keyframes } from '@ant-design/cssinjs';\nconst genNotificationPlacementStyle = token => {\n  const {\n    componentCls,\n    width,\n    notificationMarginEdge\n  } = token;\n  const notificationTopFadeIn = new Keyframes('antNotificationTopFadeIn', {\n    '0%': {\n      marginTop: '-100%',\n      opacity: 0\n    },\n    '100%': {\n      marginTop: 0,\n      opacity: 1\n    }\n  });\n  const notificationBottomFadeIn = new Keyframes('antNotificationBottomFadeIn', {\n    '0%': {\n      marginBottom: '-100%',\n      opacity: 0\n    },\n    '100%': {\n      marginBottom: 0,\n      opacity: 1\n    }\n  });\n  const notificationLeftFadeIn = new Keyframes('antNotificationLeftFadeIn', {\n    '0%': {\n      right: {\n        _skip_check_: true,\n        value: width\n      },\n      opacity: 0\n    },\n    '100%': {\n      right: {\n        _skip_check_: true,\n        value: 0\n      },\n      opacity: 1\n    }\n  });\n  return {\n    [`&${componentCls}-top, &${componentCls}-bottom`]: {\n      marginInline: 0\n    },\n    [`&${componentCls}-top`]: {\n      [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: {\n        animationName: notificationTopFadeIn\n      }\n    },\n    [`&${componentCls}-bottom`]: {\n      [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: {\n        animationName: notificationBottomFadeIn\n      }\n    },\n    [`&${componentCls}-topLeft, &${componentCls}-bottomLeft`]: {\n      marginInlineEnd: 0,\n      marginInlineStart: notificationMarginEdge,\n      [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: {\n        animationName: notificationLeftFadeIn\n      }\n    }\n  };\n};\nexport default genNotificationPlacementStyle;","map":{"version":3,"names":["Keyframes","genNotificationPlacementStyle","token","componentCls","width","notificationMarginEdge","notificationTopFadeIn","marginTop","opacity","notificationBottomFadeIn","marginBottom","notificationLeftFadeIn","right","_skip_check_","value","marginInline","animationName","marginInlineEnd","marginInlineStart"],"sources":["/data/messenger.client/node_modules/antd/es/notification/style/placement.js"],"sourcesContent":["import { Keyframes } from '@ant-design/cssinjs';\nconst genNotificationPlacementStyle = token => {\n  const {\n    componentCls,\n    width,\n    notificationMarginEdge\n  } = token;\n  const notificationTopFadeIn = new Keyframes('antNotificationTopFadeIn', {\n    '0%': {\n      marginTop: '-100%',\n      opacity: 0\n    },\n    '100%': {\n      marginTop: 0,\n      opacity: 1\n    }\n  });\n  const notificationBottomFadeIn = new Keyframes('antNotificationBottomFadeIn', {\n    '0%': {\n      marginBottom: '-100%',\n      opacity: 0\n    },\n    '100%': {\n      marginBottom: 0,\n      opacity: 1\n    }\n  });\n  const notificationLeftFadeIn = new Keyframes('antNotificationLeftFadeIn', {\n    '0%': {\n      right: {\n        _skip_check_: true,\n        value: width\n      },\n      opacity: 0\n    },\n    '100%': {\n      right: {\n        _skip_check_: true,\n        value: 0\n      },\n      opacity: 1\n    }\n  });\n  return {\n    [`&${componentCls}-top, &${componentCls}-bottom`]: {\n      marginInline: 0\n    },\n    [`&${componentCls}-top`]: {\n      [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: {\n        animationName: notificationTopFadeIn\n      }\n    },\n    [`&${componentCls}-bottom`]: {\n      [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: {\n        animationName: notificationBottomFadeIn\n      }\n    },\n    [`&${componentCls}-topLeft, &${componentCls}-bottomLeft`]: {\n      marginInlineEnd: 0,\n      marginInlineStart: notificationMarginEdge,\n      [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: {\n        animationName: notificationLeftFadeIn\n      }\n    }\n  };\n};\nexport default genNotificationPlacementStyle;"],"mappings":"AAAA,SAASA,SAAS,QAAQ,qBAAqB;AAC/C,MAAMC,6BAA6B,GAAGC,KAAK,IAAI;EAC7C,MAAM;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